package com.bsb.biz.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bsb.base.mapper.BsbExpertVoiceMapper;
import com.bsb.base.model.BsbExpertVoice;
import com.bsb.base.model.BsbExpertVoiceExample;

@Service
public class BsbExpertVoiceService{
	
	@Resource
	private BsbExpertVoiceMapper bsbExpertVoiceMapper;
	
	public void addBsbExpertVoice(BsbExpertVoice bsbExpertVoice) {
		bsbExpertVoiceMapper.insertSelective(bsbExpertVoice);
	}
	
	public void delBsbExpertVoiceByUuid(String uuid) {
		bsbExpertVoiceMapper.deleteByPrimaryKey(uuid);
	}
	
	public void updateBsbExpertVoice(BsbExpertVoice bsbExpertVoice) {
		bsbExpertVoiceMapper.updateByPrimaryKeySelective(bsbExpertVoice);
	}
	
	public void updateBsbExpertVoiceByExample(BsbExpertVoice bsbExpertVoice,BsbExpertVoiceExample bsbExpertVoiceExample){
	    bsbExpertVoiceMapper.updateByExampleSelective(bsbExpertVoice,bsbExpertVoiceExample);
	}
	
	public BsbExpertVoice getBsbExpertVoiceByUuid(String uuid) {
		return bsbExpertVoiceMapper.selectByPrimaryKey(uuid);
	}
	
	public List<BsbExpertVoice> getPageBsbExpertVoice(BsbExpertVoiceExample bsbExpertVoiceExample) {
		return bsbExpertVoiceMapper.selectPage(bsbExpertVoiceExample);
	}
	
	public int countBsbExpertVoice(BsbExpertVoiceExample bsbExpertVoiceExample) {
		return bsbExpertVoiceMapper.countByExample(bsbExpertVoiceExample);
	}
	
	public List<BsbExpertVoice> selectByExample(BsbExpertVoiceExample example){
	    return bsbExpertVoiceMapper.selectByExample(example);
	}
}
